#include "ClientManager.h"
#include <boost/thread/mutex.hpp>

extern "C"
{
    static std::string result;

    const char *thriftMethod(const char *method, const char *reqArgs)
    {
        if (method == NULL || reqArgs == NULL)
        {
            return "thriftMethod method == NULL || reqArgs == NULL";
        }
        CClientManager::instance()->thriftMethod(result, method, reqArgs);
        return result.c_str();
    }
}




